Why creating these two keys? Rendering headers/contents could be done by traversing the `items` structure iteratively. Adding these two new keys seems like destroying the original data structure to me.