Refactoring.
Jinja2 custom filters.