Issue #2641604 by Mac_Weber, lluvigne, heykarthikwithu: Replace deprecated usage of entity_create('node_type') with a direct call to NodeType::create()