Slip a small paper clip or a needle into the side of the connector that has an opening, push down with the clip/needle while pulling the wires out.
Hook up the wires individually to the pins and leave it that way, or note the proper orientation and plug them back into the connector as space, wire, wire. You can then plug the connector in with the space-side hanging off the side.