We can simplify this code by instead applying a style for the schedule term header created in style.xml, rather than creating the style programmatically here.