claytext: factor out paragraph methods into lambdas