A pony was removed from common land in south Wales over welfare concerns.