refactors RepositoriesHelper
refactor default_sortable_opts