Custom switching logic would be nice but not necessary. If you read the program (up to 8 KB) into WRAM at CPU $6000-$7FFF and the CHR data (also up to 8 KB) into VRAM at PPU $0000-$1FFF, then you don't need extra switching logic, as the target cart's mapper already chip-enables the ROM or WRAM based on /A15.