Refactor to shortcircuit if library is already found at parent scope.

Note that there is actual no need to call the module again at child scope when it is already done at parent scope.