Simplify cop spec metadata
What does this MR do and why?
This was too complicated: we can just use a hash to tell
include_context
what type of spec to apply to.
See gitlab-org/gitlab!97518 (comment 1099348221) / gitlab-org/gitlab!97518 (comment 1099361884).