Remove obsolete API usages

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>