slot_allocator: rearrange helper function
slot_allocator: rearrange helper function

rizard/bigcode,rizard/bigcode,jnealtowns/bigcode,jnealtowns/bigcode,idealedge/bigcode,idealedge/bigcode,idealedge/bigcode,rizard/bigcode,idealedge/bigcode,jnealtowns/bigcode,idealedge/bigcode,jnealtowns/bigcode,jnealtowns/bigcode,rizard/bigcode,rizard/bigcode