Removes duplicate module declarations.