Ubuntu installation problem in grub installment step

I have a Dell inspiron 3580 laptop with pre-installed ubuntu 18.04 .I did setup ubuntu desktop 19.04 .But I encountered some problems about Dell restrictions and solved them.But I realized one odd problem in installation of ubuntu.
Step by step I will explain;

1) booted usb with legacy.(without uefi)

2) selected external legacy system in bios for booting usb.

3) installation started smoothly.

4) installation of grub in the end of installment did throw exception.As far as I searched this problem in google,It seemed that it required efi partition.But installation did not create efi partition because of legacy system booting of usb.

5) created efi partition on my disc using gparted.

6) again tried installation and grub installation threw error.

7) created usb with uefi using rufus

8) succeeded installation smoothly.

As a result ubuntu installation requires efi partition and uefi boot usb for my laptop. In bios my laptop only supports uefi.

I guess, Ubuntu installation checks my bios firmware during installation process and decides whether using grub with efi parttion or legacy. So my firmware in uefi and it tries to setup grub with efi partition.

But from the beginning if I had used usb with uefi boot ,Ubuntu installation would have made efi partition and installed grub.

What I try to explain,If ubuntu installation checks firmware boot type,A validation at the beginning of installation could have been made like “You are using legacy boot usb but your firmware requires uefi boot and you don’t have a efi partition.You will not be able to install grub because of grub’s efi partition requirement.You must use usb with uefi boot”

If this validation occurs at the beginning of intallation,it will be easy to identify the problem and worse grub installment begins at the end of the installment.This is waste of time.

Sorry for my bad English writings,

If my estimation is right,Can installation process be improved with this validation?