Add missing @Deprecated.
Deprecate legacy API methods.