Made PatternNode constructor into a factory