Remove duplicate connections.