It's a relatively new problem. Most sports used to rely on rules set by the IOC. Those rule have gradually changed over the past couple of decades - effectively from complete exclusion, via an attempt to define physical and social transition that made it more or less impossible for an athlete to compete until they were already past their sporting prime years, then to testosterone limits, then to no standard criteria and an instruction to different sports to define their own rules.
The various sports are trying to do that and we're seeing the first test cases coming from them now.