However, if you don't fully clean the code when you're there, likely you're leaving a bunch of footguns in place, because half-cleaned code can be worse than the original mess--it just doesn't address all the problems and there can be significant functionality lost in the gaps. And you'll never get to the best solution if you refuse to do it just because it touches multiple pieces of the program.