Refactor grub specific stuff.