refactor linq-partitioning.clj