Cleanup.
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning
Type checks replaced with pattern matching + some cleaning