Some refactoring of queue_items_controller_spec.