Move documentation annotations out of the API.

Signed-off-by: Robert Xu <robxu9@gmail.com>