Export namespaces instead of functions in generated code