Remove unnecessary wirings