Refactoring Queue#getItemResult