since this deals with parsing of query/filter, I don't think it should be in the common.xcontent package, maybe place it in the same package as `QueryParserContext`?