I wonder if we could consolidate this somehow into the 'decode' call, or 'decode_event' call? It would save every input from having to have this extra line of code.