Remove unnecessary print() from templates.