Deprecate this function in favor of the implementation in the API types, considering that to be the canonical implementation. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>