Refactoring your code periodically is a good idea. But, when you do, exercise some caution.