Refactored RegistrationKey construction