Reactivation of latent infections with migration shapes population-level disease dynamics