refactor repo refresh code to repo-service