v0.17.0 Deprecate documents stage of middleware.