remove usage of TypeScript namespaces to support Babel 7
Created by: sqs
This prepares for using Babel 7 for TS transpilation and is a good practice anyway.
See "Does not support namespace
s" under Caveats at https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats.