Martin Fowler, in his book "Refactoring" outlines circumstances were you can leave bad code alone.
Basically if it works and you don't have to touch it to change it, leave it alone.
Basically if it works and you don't have to touch it to change it, leave it alone.
If code is running once in order, there's no reason to break it up into functions and take it out of execution order. That's just stupid.