I don't think I've ever done this any way other than: 1) attach spring compressors 2) apply rattle gun with deep 24mm socket
I don't know why you'd ever need a spanner if you have a rattle gun, it doesn't matter that the piston can rotate with the nut, the rattle gun should be hitting the nut hard enough to remove it anyway.