Cleaner implementation of request cache clearing on token expire and logout
Trait helper for formatted response