Refactoring registrations to extension methods