Removing undesired submodules