What factor most contributed to labor specialization in West Africa?

the growth of cities
ongoing wars
food surplus