Removing duplicated code on pre-panel panel 1.