Cleanup module inter-dependencies.