Legacy modernization
Improving a long-lived system's foundations while product development on it continues.
Legacy modernization is migration's harder sibling: it's not just moving to a new implementation, it's doing so on a system nobody fully understands anymore, with tests that may not exist, and a business that needs features shipped on the old code in the meantime.
The incremental strategy that works for a clean migration works here too, with one addition: modernization efforts that stop product work to "fix the architecture first" tend to lose executive support before they finish, because the cost is visible and the benefit isn't yet. The version that survives is the one that ships a visible improvement alongside every batch of product work, so the investment stays legible to the people deciding whether to keep funding it.