Remove unnecessary bits from chromeless template