Generalized resource toggling using specs from PanelFactory.