Who got rid of the snakes from Ireland?

The myth states that St. Patrick got rid of the snakes in Ireland. Some believe the snakes were a metaphor for Protestants.

it was st. Patrick who got rid of all the snakes in Ireland