A long-time senior lawyer at BT Group has left the business after over 24 years.