Only drop duplicates if they are from the same module.