NXP-14193: use facet instead of Document type to retrieve collections
NXP-14193: format
NXP-14193: format + cleanup