Factor common bits out of TrueAfrican USSD session handlers.