Cleaning up the registrations.