Removing module.parent and module.children to avoid memory leaks.