I would inline this method in the `getTwigEnvironment` one.