Make the bundle more generic : allow to use odm or orm