Update RegistrationExtensions.cs

Removing copy-paste blocks