A new continuation-based autodiff by refactoring