Respect globalPrefix when using legacyNamespace.