Improve factions, leaders & genders related code.