Berberidaceae

Either, leaves all compound; or reduced to 3-fid thorns on main branches and simple on side branches Berberidaceae
Leaves of the main shoots reduced to spines; leaves of short shoots simple Berberis
Leaves of the main shoots compound, not reduced to spines Mahonia