WIP: Refactor certificate agent and queue

Details to follow...
Would renaming this helper method make things more clear?
in the spirit of: `construct_payload_and_respond_to_xqueue_server`

The idea here was to remove duplicate code each time we construct the
data payload per XQueue's expected data format.