discover/grub2: Implement reduce rules