Remove the unused validate_config()
Remove the redundant repo.sync_type check