How to move repeating code into an include template
That seo code will need to be in a block of its own. 
Create a seo block in your _layout template and then wrap your seo code in your include template with block tags of the same name.