Simplify twig implementation.