Refactoring on SweepMesh.