The hall sensors on my Magic Pie were stuck in so tightly I had to break them out in little pieces using toffee hammer and a small jewellers' screwdriver as a chisel, and discovered there was a fair amount to chisel out before the new sensor fitted easily into the slot.
I used a couple of pairs of mole grips to try and prevent the stator laminations from separating while I gently chiselled away at the remains of the old hall sensor:
All the broken broken bits were removed:
So the new sensor could slip nicely into the slot:
I did have a few gaps between some of the laminations
(one is just visible in the above photo), but when I applied the superglue to hold the new sensors in place, I put some in the gaps and kept the laminations tightly clamped while the glue dried to eliminate the gaps!
I decided it might be easier to solder the wires to the sensors before gluing them into place, so that was the way I tackled it, and it seemed to work pretty much according to plan. I slid pieces of heat-shrink tube onto the wires before soldering to the sensor legs and then slid them over the legs and simply shrunk them into place with the soldering iron.
Just make sure you reconnect the correct coloured wires to the correct sensor legs, or you'll need to pull the whole thing apart again to put it right when you eventually find out it's not working. I took photos and made detailed notes before I started removing any of the wires, to make sure I put it all back together correctly first time.
Hope this helps.
Alan