Move replace statements