How would you set pitch to camera and yaw on springarm?

Hey. How would you go about splitting the pitch and yaw of the camera so that the camera pitch up and down at the end of the springarm without pitching the springarm itself and using the springarm to rotate around the pawn?