Tidy First?

..

https://www.oreilly.com/library/view/tidy-first/9781098151232/

A book by Kent Beck on software design.