Remove all modules apart from the popover and its dependencies