With some places I’ve had to introduce the concept of software bankruptcy. At some point, it makes little financial sense to keep investing in a code base with excess debt. It can be radically cheaper to start fresh.