Extract namespace-level functions and variable generation into its own method.
Extract namespace-level functions and variable generation into its own method.

ddobrev/CppSharp,zillemarco/CppSharp,u255436/CppSharp,ktopouzi/CppSharp,ktopouzi/CppSharp,zillemarco/CppSharp,mono/CppSharp,mono/CppSharp,ddobrev/CppSharp,genuinelucifer/CppSharp,genuinelucifer/CppSharp,ktopouzi/CppSharp,zillemarco/CppSharp,u255436/CppSharp,ddobrev/CppSharp,mohtamohit/CppSharp,inordertotest/CppSharp,ddobrev/CppSharp,u255436/CppSharp,u255436/CppSharp,genuinelucifer/CppSharp,inordertotest/CppSharp,mohtamohit/CppSharp,ddobrev/CppSharp,ktopouzi/CppSharp,mono/CppSharp,mohtamohit/CppSharp,inordertotest/CppSharp,zillemarco/CppSharp,mono/CppSharp,genuinelucifer/CppSharp,genuinelucifer/CppSharp,ktopouzi/CppSharp,u255436/CppSharp,mohtamohit/CppSharp,inordertotest/CppSharp,inordertotest/CppSharp,mono/CppSharp,mohtamohit/CppSharp,zillemarco/CppSharp,mono/CppSharp