An expression cropped up in a homework problem that I'm not sure how to simplify. Consider the following, where $|x\rangle $ is a position eigenstate and $|p_1\rangle, |p_2\rangle$ are momentum eigenstates: $$ \int dx |x\rangle\langle x|p_1\rangle\langle p_2|x\rangle\langle x| $$ If there were only a single $|x\rangle\langle x|$ projector, I'd use the completeness relation $\int dx |x\rangle\langle x|=\hat{1}$ and be done with it. But there are two projectors, so I'm not sure how to deal with this - they aren't separable, so far as I can see. I have also tried writing out the position-momentum overlaps explicitly, turning the expression to: $$\int dx e^{i(p_1-p_2)x/\hbar}|x\rangle\langle x|$$ which strongly resembles the usual integral form of the Dirac delta, but with the extra projector factor I don't know how to deal with.
How might I proceed with this?