Publishing a Windows app exposed years of technical debt. Here is how one developer used mixins and tests to clean it up safely.