refactor(midway): Export namespaced init method.