Move patterns to a separate class