Instead of using multiple nodes, you can just combine (multiply) quaternions and/or rotation matrices. In any case, there really shouldn’t be any need for all that low-level math.
Perhaps I’ll write up some example code later, when I have some more time.