Refactoring code completion