Remove the unused layer variable from the background panel.