Separated hash code generation logic from 'HeaderParser.groovy'