Magic number buried in the function. Could this be promoted to a named constant at the top of the file?

i.e. ```_HEADER_DEPTH = 17``` of something of that ilk?