Simplify RepoConfig#validate