This wasn't how it started, I took a vital yet buggy and unmaintainable piece of software and got it to a point where new features could be cleanly added and new bugs were a very rare event.
And yet, every time I tried to make any significant change - generally intended to further improve the maintainability of the project - I got shat on by an architect who otherwise had nothing to do with the project and a boss who never listened to any one else.