Turning off a sex "switch" triggered when female insects mate may be a smart and green way of controlling pests in future.