Factor out parsing context.