A traffic based decomposition of two-class queueing networks with priority service