Therefore, if you are refactoring, refactor. Don't be tempted to change the meaning of the code. If you are, put on your RewritingHat first. (See RefactoringAndRewriting.) A good test is probably whether you need to change any UnitTests. If you do, then you're rewriting.
After a refactoring session, it is often easy to enhance the system by putting helper methods and classes into the PublicInterface of the component / package / module they're in. Then is the time to start writing UnitTests again.
This page mirrored in WikiPagesAboutRefactoring as of July 17, 2004