And if these two classes are indeed necessary, make them private to spark package so they don't show up in the API documentation.