Allow classes that "? extend Partitioner" in the producer builder