Walmart’s former general counsel steps down