The Symptoms of Low Internal Software Quality
blog.plataformatec.com.br
blog.plataformatec.com.br
In particular, if you have some old software that has been in production a long time, you will probably find out that it is doing things that you don't know it is doing.
Refactoring is usually the way to go. Often a small amount of effort can address many of the worst pain points.