While working on setting up a grid within a panel, I encountered an issue where even after destroying the grid, a reference to it is still retained inside the initial configuration for the panel. This prevents proper cleanup of resources. Is there a method to prevent the creation of this initial configuration or a way to clear it to ensure that objects it holds references to are effectively cleaned up?