Removing old middleware.