refactor cheatsheet