They are two pin type threaded bolts. They need to be removed, then replaced with the last two bolts that you'll have left over.
Easy trick, get two M6 nuts thread the first one one, not right to the bottom. Then thread but number two on top, tighten the top nut on to the lower, then use a spanner on the lower nut to remove the pin as you would a normal bolt.