UPDATE: Refactor temporary partitions idea in preference to pruning method