Since flushFilterDirtySlateToCassandra and flushDirtySlateToCassandra are more than 30 lines and very similar, how about extracting one method for common code?