Refactoring a sentence