Refactor text to remove repetition