Habitat as a mediator of mesopredator‐driven mammal extinction