Restore `req.layer` to previous value.