Cleanup admin check logic in Jinja2 templates