Twig loader refactoring.