Genetic structure and division of labor in honeybee societies