Prevention and mitigation of epidemics: Biodiversity conservation and confinement policies