Mean Field Homogenization