Get rid of RefSanityChecks

Replace with a static method in LoadingConfigurationBuilder instead.