Refactor to remove need for data attributes on cards.