Refactored the repeated links into a helper. Shoehorned the helper into the controller using the panels beforeRender. Updated the panel to use the new controller