Extracted the header row template into a method.