Yaml driver factorization

Signed-off-by: Jérémy Jégou <jeremy.jegou@fr.airtag.com>