The question is if you really expect to get much more performance from upgrading your best bike to an XT - enough to warrant the expense of upgrading the lesser bike.
Doesn't sound like a good deal to me once you add up all the cost. Of course, that assumes you have to have a new derailure to upgrade the less expensive MTB. Why do you have to change the derailure?