Injected legacy helper and split twig function in 2