Refactoring/abstraction of venerable synctool