Diversity and the Shape of Polities