wow refactor