Moved DtpNode static factory method to factory class.