Is this code duplicated? Could we move it to other function?

function iterateContacts(slot, total) {
  for (var i = 0; i < total; i++) {
      var current = (slot * CHUNK_SIZE) + i;
      var contact = contacts[current];
      var renderedContact = renderContact(contact, fbContacts);
      addToList(contact, renderedContact);
      if (contact.category && contact.category.indexOf('favorite') != -1) {
         favorites.push(renderedContact.cloneNode(true));
      }
   }
}

I am sure that iterateContacts, slot and total names are the worst :) choose pretty names jejeje