Extract template logic to value objects