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