Generate a table-friendly object by flattening and normalizing the keys