Remove redundant RegistrationError class.