BT parts ways with legal tech business after eight years