Refactor length methods on Paragraph and Headline