Use transformation instead of pattern matching.