JAL-4308 reduce number of refs to 5, always have canonical reference first.