I've found a good trick for fixing crufty code is to pretend I'm going to open-source it. It's like inviting guests over to your house.
Maciej Cegłowski
I've used this trick for a while and it always works.
Got a question or comment? Email me or catch me on Twitter.