Cleanup Louvain class