Remove unnecessary connectors