Text this: Proportions of different habitat types are critical to the fate of a resistance allele