[Orc] Refactor the CompileOnDemandLayer to make its addModuleSet method