Make context pattern matching saner