reverse to tommcdo Twig::factory implementation