Factored out SRJ parsing