Refactoring code is less stressful if you do this