Refactoring patterns into sets
typo