Factor out body formatting duplication