10 - There's no refactoring just rework.
If things ever go wrong just use XGH to quickly solve the problem. Whenever the problem requires rewriting the whole software it's time for you to drop off before the whole thing goes down.
https://gohorse.com.br