This could directly call to_hash_legacy.