Please see attached algorithm, which explains how Primary and Secondary Billers are assigned.