Avoid creating an extra instance of ModuleIdentifier.

+review REVIEW-5257