Grazing refuges, external avoidance of herbivory and plant diversity