Fix naming typo.
Fix typehints.
NamespaceHandler extends AbstractStructureHandler
Rename globalNS() to globalNamespace().
Fix style.
Merge branch 'feature/optimize-handlers' into develop