Prune mocked modules.