Invalid grub config keeps overriding corrected version

Why does Truenas have both AMD and Intel configs, which is clearly invalid?
GRUB_CMDLINE_LINUX_DEFAULT="libata.allow_tpm=1 amd_iommu=on iommu=pt kvm_amd.npt=1 kvm_amd.avic=1 intel_iommu=on zfsforce=1 nvme_core.multipath=N libata.allow_tpm=1 intel_iommu=on zfsforce=1 nvme_core.multi
path=N"

Everytime i try to fix it with below, it just keeps overriding on the next boot.
GRUB_CMDLINE_LINUX_DEFAULT="libata.allow_tpm=1 intel_iommu=on zfsforce=1 nvme_core.multipath=N libata.allow_tpm=1 intel_iommu=on zfsforce=1 nvme_core.multipath=N"

why would you hard code that
config = [
f'GRUB_DISTRIBUTOR="{vendor}"',
'GRUB_TIMEOUT=10',
'GRUB_DISABLE_RECOVERY="true"',
'GRUB_CMDLINE_LINUX_DEFAULT="libata.allow_tpm=1 amd_iommu=on iommu=pt '
'kvm_amd.npt=1 kvm_amd.avic=1 intel_iommu=on zfsforce=1 nvme_core.multipath=N'
f'{f" {kernel_extra_options}" if kernel_extra_options else ""}"',
]
and not test for the vendor, or make it optionally selected