[tor-commits] [arm/master] Moving managed tor functions into helper