Remove calls to getModuleImpl.

Fixes #754.
TODO: remove the function after npm update.