setup: also add helper for unlink_wire

Avoid some code duplication by splitting out the unlink code for a wire side.