Anglo-Australian mining company BHP Group's general counsel is leaving after three and a half years in the role.