[RFC PATCH 1/2] kunit: tool: Move qemu architecture dependency checks into a function