[ResourceBundle] Reduce dependency on Twig extension