Minor refactor in repocheck