The head of legal at Qantas has left the Australian carrier to rejoin a local law firm after two years at the airline.