"But it's a boolean in the database! A migration would be unthinkable!"
So whatcha gonna tell
the state of Oregon
when their contract's on the line?
How about
Canada?
It is a bad approach because gender is not a binary state. (Please get over it.)
Trans people are not a special case.
Gender is indeterminate.
Accept that anything is possible.