Refactor the setting of PrivateGlobalPrefix.