Somalia has an interesting legal system to deal with this, it's kinda like insurance.
When you're born you get assigned to a judge, kinda like how we get a godfather. The judge is expected to get to know you as you grow up and get an idea of your character and the value you bring to your community.
If you're accused of a crime your judge will meet with the judge of your accuser and they'll attempt to come to an agreement about the truth of the case.
After they've reached a verdict (or not) and decided on a sentence or compensation the case is resolved at the lowest possible level. If the family can deal with it, they will, if not they'll have to go begging to their extended family, sept or possibly even the entire clan.
Clans are a bit like insurers, they guarantee the behaviour of their members and if you get kicked out for being too big a liability it's essentially like being made an outlaw.