refactor repository specs