Simplifying NodeModuleProvider logic.