Move the creation of the deprecated Twig function to the Twig DIC extension.