Flatten hash-array structures by removing redundant information.