[Concept] [PATCH 02/26] scripts: build-qemu: Move memory size to the helper