What is the purpose of pulling out createRDD into a companion object?