How to untangle spaghetti code?

Spaghetti code is what happens when the safest way to ship is to not touch anything. A “small change” turns into a week of side effects…