I think it is even more important to clean up the code because it is the prime reference to every programmer!
For example when I played around with the postgres version of the logger I just looked at other code and found the somewhat peculiar-looking stuff with inline functions. Not having a real clue of Postgres I just took up on that trick...