News Corp legal chief quits role