I would take a SparkConf here and pass it down to get the filters from that.