For a predefined list of sites (e.g. enwiki) and categories (e.g. [[w:Category:Disambiguation pages]] ) , a function should remove sitelinks to pages that are not in these categories from items with P31=Q4167410
This avoids that content pages are buried in items with P31=Q4167410
Approaches to create new items for pages at clients will eventually re-add them.
This is one of the steps mentioned at https://www.wikidata.org/wiki/Wikidata:Bot_requests#Take_care_of_disambiguation_items ( 7a. Disconnect sitelinks that are not disambiguation pages from disambiguation item )
Current workaround is to do that manually, a gadget allows to identify sitelinks that are not disambiguations.