Pattern simplification.