Fix documentation messages on deprecation