cleanup: Remove usage of process.nextTick