[tor-commits] [tor/master] Slightly refactor and fix couple callsites