I think that pretty much developed in parallel among immigrant populations and then came to understandings.
Something to look at might be the way the Mafia provided upstream distribution of heroin for black crime syndicates to retail in the postwar into the blaxploitation “pusher man” era
The crack era really changed things with black gangs growing independent, consolidating (Crips & Bloods almost franchise brands) and developing their own contacts with producers and smugglers, with the final cooking from powder into rock leaving a lot of the value chain close to street level