Refactor frontend sidebars to remove duplicated markup.