move schema handling into separate class (possible direction for DN4 to
take for other plugins)