Wrap namespaces into objects