Add unique checking before rename repository.