In this case the expression "out of it" stands for "from it", and as such behaves as a unit:
Get what you can out of it. = Get out of it what you can.
He came out of it looking good. = He looked good coming out of it.
So in this case it makes sense to keep all the elements.