The patterns should be in a final string as an instance variable. Especially considering that two co-masters patterns are the same.