Minor refactoring in JSDPU.