As has been noted; DEF shelf life is something to be aware of, and consider when filling it.
Shelf life drops like a rock as tempertures increase.
At 100 degrees it is down to 6 months or so.
Since I live in Phoenix AZ, and do not use my trucks as daily commuters, this is a real concern for me. Realize that it is not just the ambient air temperture to consider, but the actual DEF temperture!. When it is 115 in phoenix, and the truck is being driven, the DEF temps will be a lot hotter than 115!
So I keep my DEF tank low. I put 2.5 gallons of fresh DEF in when the warning appears.
If I have a trip coming up where I will need more, then I put more in at that time.