Extract head to a partial and main layout to default layout.