COSMIT refactor sparse partition