NXP-11809: refactor adapter registration and usages

Signed-off-by: Stephane Lacoin <slacoin@nuxeo.com>