Reduce patterns duplication
Merge pull request #415 from Dmitry-Me/reducePatternsDuplication

Reduce patterns duplication