Refactored Queue#removeFromQueue()