x86, io-apic: Move CONFIG_IRQ_REMAP code out of x86 core