You are refactoring code all wrong

People often refactor without a strategy and for the wrong reasons. You need to know why you’re doing it and have a clear end goal.