The wiring for it extends back under the tank where a connector is located. Usually have to loosen the tank and raise it to disconnect that plug. To take it apart once you have it out I believe involves some special security type torx head, has a hole in the center of it along with the torx configuration. You could probably take it to a locksmith and get it repaired so you don't have to buy a new one. You'd have mismatching locks on the saddlebags and ignition then, and trunk if an I/S. I'd try Chris's approach first before doing anything else.
When my little door broke off inside my ignition, I replaced the ignition, and so I have faced the torx... it is "normal",
I went and found the never-used cheap torx set that I knew was somewhere in the shed, and there was one that fit...
I don't recommend or disavow my fix

- ordering a whole new lockset from HDL for around $130 - it was a giant adventure
changing out all the locks on my tourer, but all my locks use the same key, and my little door is as good as new - it is new...
-Mike