Describe the bug
Right now, functions in jupyter and latex integrations such as routine_to_latex or explore_routine don't take Bartiq routines as an argument, they take QREF routines.
I think it doesn't make much sense from the API perspective, as it forces users to go back and forth between QREF and Bartiq, so we should make it work with both formats.
Also, I think that we should consider moving content of jupyter and latex modules into analysis module.