Simplify the process of constructing pattern node.