[WIP][ResourceBundle] Try to reduce dependencies in Twig extension