a sex change operation is really gross. what they do is invert the genitalia turning it into a sheath witch they then place into a cavity constructed in the groin area. so the genitalia is never removed instead it is mutilated.
My guess is they can’t reverse it but they can reform it to appear like it use to.
So you saw that South Park episode too.