FLOE-108: Clean up the code for the summary panel.