we shouldn't guess, because we know.
Use os.environ.get('QUBELL_USE_PUBLIC', None) as indicator.

Please use isPublicApiInUse, see below.