[PATCH v2 00/10] reduce code duplication in NodeDevice driver