Factoring out ValidateRepositoryName from NewRepositoryInfo

Signed-off-by: Don Kjer <don.kjer@gmail.com>