Support more twig function, move function fetcher to new class.