As a kid (in the early 70s) I remember the air hostesses walking down the isles with a spray can. They don’t do that any more, but I wonder if or why they don’t add lower concentrations of the aerosol to the air conditioning at the end of the flight.
You could spend tens or hundreds of millions building an automatic system (certification for aircraft is not cheap or easy) or just hand the flight attendant a can of spray.