Small refactor in desugar of pattern matching