Perturbation theory for cosmologies with nonlinear structure