Remove unneeded classes from MR and Spark job to make job starts faster.