Refactoring base twig template