Refactor 'partition list'.