Exercise 12.2.2 in Shankar's Principles of Quantum Mechanics asks to derive the expression for the angular momentum operator $L_z$ \begin{equation} L_z = XP_y-YP_x \end{equation} using its commutation relations with the coordinate and momentum operators \begin{align} [X,L_{z}]&=-i\hbar Y\\ [Y,L_{z}]&=i\hbar X \\ [P_{x},L_{z}]&=-i\hbar P_{y}\\ [P_{y},L_{z}]&=i\hbar P_{x} \end{align} I have seen a solution which uses the coordinate representations of the momenta.
However, I would like to find one that relies purely on the abstract relations.
All I have been able to prove so far is that $L_z$ and $XP_y-YP_x$ commute. Multiply the first relation on the right by $P_{y}$ and the third relation \begin{align} [X,L_{z}]P_{y}&=-i\hbar YP_{y}\\ Y[P_{x},L_{z}]&=-i\hbar YP_{y} \end{align} Equating the LHS's we obtain \begin{align} (XL_{z}-L_{z}X)P_{y}&=Y(P_{x}L_{z}-L_{z}P_{x})\\ XL_{z}P_{y}-L_{z}XP_{y}&=YP_{x}L_{z}-YL_{z}P_{x} \end{align} Now subtract $XP_{y}L_{z}$ from both sides \begin{align} XL_{z}P_{y}-XP_{y}L_{z}-L_{z}XP_{y}&=YP_{x}L_{z}-XP_{y}L_{z}-YL_{z}P_{x}\\ X[L_{z},P_{y}]-L_{z}XP_{y}&=(YP_{x}-XP_{y})L_{z}-YL_{z}P_{x}\\ \end{align} Add $L_{z}YP_{x}$ to both sides \begin{align} X[L_{z},P_{y}]+L_{z}YP_{x}-L_{z}XP_{y}&=(YP_{x}-XP_{y})L_{z}+L_{z}YP_{x}-YL_{z}P_{x}\\ X[L_{z},P_{y}]+L_{z}(YP_{x}-XP_{y})&=(YP_{x}-XP_{y})L_{z}+[L_{z},Y]P_{x}\\ [L_{z},XP_{y}-YP_{x}]&=X[P_{y},L_{z}]-[Y,L_{z}]P_{x} \end{align} However, using the commutation relations we deduce that $X[P_{y},L_{z}]=[Y,L_{z}]P_{x}=i\hbar XP_{x}$, therefore \begin{equation} [L_{z},XP_{y}-YP_{x}]=0 \end{equation}
Any other manipulations left me spinning in logical circles. I would appreciate any help in completing the argument.