gpt 4 refactoring