remove legacy RegistrationCode code