Don't know about X5 but probably similar to my E39.
I wrote a DIY Short Shifter Kit for my
1998 528i, please see step #7 in link below:
"7. Now examine the NEW plastic cup, you will see two (2) tabs that hold it in place. Now you need to use a small screw driver and slowly pry the old plastic cup out. Be patient.
I use a combination of screw driver and pick to pull the old plastic cup."
https://www.bimmerfest.com/forums/sh...d.php?t=546591