Removing extraneous submodules.