[#52431787] Separate Badge PDF producer code out of the view and into a Utility class.