Extract template logic