Moved everything partitioning related into partitioning module