Text this: The evolution of division of labour in structured and unstructured groups