Remove unneeded use of defer.