The purpose of this MR is to remove some duplicated code in pesummary.gw.webpage.main.
pesummary.gw.webpage.main