break your theme up and call get_template_part() as needed to assemble the theme. much easier to maintain.