I used to tap them out gently with a hammer. I would unscrew the nut so that the nut and end of the pin were flush. Then tap with a hammer so it hits both the nut & pin at the same time. That spreads the load around a bit and less likely to mash the end of the pin & threads.