Remove duplicated modules.