Mookie Betts traded as part of a three-team deal