Removes OverlayFactory.