Magnetic flux pumping in 3D nonlinear magnetohydrodynamic simulations