Task specialization and task switching in eusocial mammals