Clean mindmap node creation code.