repeats, elevation and refactorings