refactor the controller plugin as a factory
refactor the view helper as a factory
invokables to factories