[ResourceBundle] Reduce dependency on Twig extension
Merge pull request #1576 from stloyd/feature/reduce_twig_deps

[ResourceBundle] Try to reduce dependencies in Twig extension