Removing static components from WidgetClass