Refactor RegistrationsController.