Do not use shared_ptr for storing partitions