Removing duplicated code on panel 1 using middleman times.