Simplify computation of visible module set.