Refactored construction of RADIUS accounting messages