We know Aculeata is the Hymenoptera’s lineage where the ovipositor evolved into a venomous sting. However, most ants have lost this sting, as well as meliponine and some other bees.
Kerr & Lello (1962) say that “there are at least thirteen ways in which stingless [meliponine] bees protect themselves, making stings obsolete”. Since this subject is being researched for more than 50 years, we hope that some advances have been made in the understanding of this specific evolutionary change.
What's the evolutionary advantage for these groups to lose this apparently awesome defense system?