Assuming you have a new low profile gas block to replace the front sight base.
I've pulled several, along the way. Usually it goes without any trouble. You need to remove the gas tube first, by removing the little roll pin with a 1/16" punch. Try not to lose the roll pin, it's easy to drop. Then work the gas tube rearward out of the base.
The pins are tapered. Make sure you tap them out from the smaller diameter side. Usually left-to-right.
If they are really hard to move try putting some Kroil, or similar, and letting it soak in for a day or so.
When you get the pins out, just tap the sight base forward with gentle taps using a plastic mallet or something else not too hard. Rotate it and work it forward.