Move block cell code to block_item template