[RFC 02/13] cmd: bootefi: re-organize do_bootefi_image()