`kvs.map { case (k, v) => new ProducerData(k, v) }.toList` is probably cleaner.