[tor-commits] [tor/master] metrics: Move helper function to lib/metrics