refactor to move into org.apache.samza.system.chooser.