extact twig factory