Refactoring HMAC checks, replacing de type checks with IsKV, IsCR, IsSS, and IsQS