Is there any way we could factor this code block into `TableFormView`?. It seems to be repeated elsewhere, and also seems like it should belong in the view.