output: Move text_item and group_item usage closer to the SPV model.