remove krun dependence on parser code

@radumereuta @bmmoore please review