There is a macro for somebody wrote for quickly changing titles. You could use it for this application simply by having a different macro for your various classes.
the author does not ask to swap titles. he talks about "badge titles" which is totally different
and yes i fully agree 100% with original post that u need different setups for different combos and is very annoying to setup the 4 titles from scratch every time u swap