Removing unneeded submodules