Move implementation from the header file
kis_node_manager.h is included everywhere in Krita, it is better not to write implementations in it.