[tor-commits] [stem/master] Remove ugly if-elif tree in favour of a dict