[ELF] Clean up OPT_INPUT handler. NFC.