Some DRY
X5b, X5c, changes to calc_paragraph_level