move route-registrar module to core