Export partitions/2 to reuse elsewhere
Another WIP checkin