Convert getInjectTemplateListener() to a ServiceManager factory.

The factory name is the fully qualified name to minimise chance of a
name clash.