[tor-commits] [tor/master] hs: Move and improve the service pruning code