Some search fields are used in multiple content models.
e.g. it looks like ProofreadPage has categories, and wikibase has external + outgoing links
Right now, the definitions for these fields are specific to wikitext content model and code would have to be duplicated in multiple places.
This code could be factored out and be made available for use in other content models, to avoid duplication and help ensure consistency.