Remove modules that are not part of the sandbox.