Reorganize hashes.