Add a run_qast subroutine to helper which abstracts away running qast.