Move getLinesFromParagraph into private scope