Unless you have a lathe and a steady rest, you will have to pull
the barrel and use a tood designed for this. Depending on how
much metal you remove to get rid of the pits, it will change
the headspace, creating another problem. Suggest that you
have someone experienced in this procedure to do it.