Refactor table and font styles to reduce duplication