Refactor registrations controller