The code in nodetype is reduplicated
The code in nodetype is reduplicated

Repeated code removed.

Co-Authored-By: shangxdy <shang.xiaodong@zte.com.cn>

Closes-bug: #1566100

Change-Id: Ic25b2c2657a27ebf1ea5df94baf28822ce746b2d

openstack/tosca-parser,openstack/tosca-parser