Org reader: refactor #+BEGIN..#+END block parsing code