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