The code requires the additional complexity to support building the result from the exports object and the defined classes. We can simplify this quite a bit once we remove support for `remotes.exports`.