Recently I came across this command "ip ospf prefix-suppression". It's a nice feature which allows the suppression of the transit link advertisement which will result in smaller RIB.
Let's look at the below topology and see how it works.
We have R1, R2 and R3 connected with ethernet interfaces. All three routers are running OSPF process 10. I have applied the command "network 0.0.0.0 255.255.255.255 area 0" on all of them.