Remove unnecessary import of Warning.