factor out Registrar#find_or_create_client