refactor repository configuration