There is a lot of code in CentralAuth that's specific to how we rolled out SUL3. Once the rollout is done and a couple weeks passed (so we are confident it won't be rolled back), that code will be a maintenance burden with no benefit, and we should remove it.
Maybe we want to keep isSul3Enabled() and simplify it to a simple per-wiki yes/no flag, for third-party wikis, but I'm not sure we want to do even that much, rather than just assuming SUL3 is always enabled. Although we have to keep in it at least a few places in the code for at least a year because of API backwards compatibility (e.g. T364829: Update Wikimedia apps to use central login domain).
(We shouldn't require users of CentralAuth to have a shared domain, that's a very Wikimedia-specific complex hack, but it should be possible to just point the shared domain prefix to a real wiki.)