These look like they might could be re-used somewhere else as a general way to format interval events - not saying to pre-optimize yet if you are only using them in one place.