Cleanup and unify view templates.