Can it be done? Absolutely! How can it be done? We would have to be there to do it. But essentially, you may have to relocate the trap which is below the piping you show. There could be other ways, but it depends entirely upon what you are doing for the new tub.