There is some duplication in multiple places of the code base (at least one in the CRUD domain and one in the reuse domain) using a combination of the SiteLinkGlobalIdentifiersProvider service with the siteLinkGroups setting to get the list of allowed site IDs.
Creating a service to just get all allowed site IDs would make the code simpler and reduce the number of dependencies of such validators.