Flatten hierarchy for items card