Refactoring HDF parser.