Split out the extension point registration code to its own function.