If you need to remove a spring loaded mounting pin from a baby gate, the best way to do it is by using a pair of pliers. First, remove the retaining clip or cotter pin from the end of the pin. Next, use the pliers to grasp the head of the pin and pull it out. Finally, use a screwdriver or another tool to pry the spring out of the housing. Be careful not to lose any parts in the process.