Clever hack using data-attributes to assign labels to cells.
data-
Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!
It's still a massive duplication of code (labels), but better and more lightweight than most solutions I've seen for this surprisingly tricky problem.