Move MapReduce actions inside the companion object.