flies that had seen corpses were avoided by other flies as if theyd been marked by death

Link. “a specific set of serotonin-receptor-possessing neurons are used” by living flies to perceive dead ones”.

Activate these and the fly ages faster. A suicide switch.