Refactor to use thead instead of pseudo-element