Separate alliance roster into a template.
Use the SmrPlayer->getAllianceRole() where appropriate, gets rid of the multitude of copy/pasted logic..
Cache the alliance role id once fetched.