This is not a good name format for an object or class -- it should start with a capital letter, and be a noun. Call it PartitionCoalescer maybe. Also, I don't think we need an `object` for it.. users could call it with just `new PartitionCoalescer().run(stuff)`.