[PATCH v3 1/2] virt-aa-helper: refactor for readability