They retrieved the second device by flying there! Why not to place it on the mountain by flying there in the first place instead of climbing?
Gandalf sent Bilbo on a suicide mission into the lonely mountain to get burnt by a dragon to melt the ring avoiding the war of men and orcs entirely.