In flattenChildren I have no way to reassign the key.