Remove partitioner factory to simplify memory allocation for the partitioner (use stack instead of heap)