[PATCH v2 07/19] qemu: domain: Extract formatting of 'commit' blockjob data into a function