Refactor get clumps partition