Pathogen evolution and the immunological niche