I'd argue it's likely both identity and brand loyalty. Identity, because it gives individuals a language with which to declare ones self, and those that classify individuals a way of referring to groups of people. Brand loyalty, because it results in individuals supporting a political agenda that may run counter to their personal or philosophical self-interests.