It changed its SEX, not its gender. Gender is between your ears, SEX is between your legs!! With the pun absolutely intended, why can’t writers get that concept firmly in their heads???
At least Tooter the Turtle had Mr. Wizard to help him reverse his desires of folly. Dr Surgeon has a far tougher assignment undoing the Tooter the Transgender’s.
Words are gendered.
People are sexed.