Make an enum expired_t to pass to apply_keyvalue_change.

I got the inspiration from this commit from an RSI by sam. Which is
where I get the inspiration for all of my commits these days.