remove unnecessary submodules.