move out the QIR XML stuff to own service