Move text formatting into one place