Refactor refactor into repair, since it does repair