A bet-hedging strategy for denitrifying bacteria curtails their release of N2O