It's only a few lines, but I think 14,17 should be moved to a partial and rendered here.