Dividing the labour in cells and societies