Merging redundant modules