Parameterize the definition of the extension handler.