It's very hard to retrofit quality into existing code. It really should be there from the very start.