choosing code to refactor