Moving parts rotated by animation

Hello there, I’m currently trying to rig a model which uses two separate animations. Because of this, the parts animated in the first animation stay at a fixed position, as shown here:

Is there any way to move these parts with the second animation, all the while retaining the rotation?

Any help is appreciated, thanks.

Edit: the first animation is paused in order to retain the rotation.