[tor-commits] [tor/master] router: Move extrainfo signing into its own function