As far as I can tell these classes do not really depend on anything mediawiki related.
ConfiguredReadOnlyMode currently depends on the Config interface, but that is it.
This change along with T206601 would mean WatchedItemStore would no longer depend on any core mw classes.