Revert back to using the service container, as injecting only the templating service creates a circular reference