TaskManager: more minor refactoring
TaskManager: more minor refactoring

This will simplify further refactoring of registerMachineDo().

Tarsnap/tarsnap-gui,Tarsnap/tarsnap-gui,Tarsnap/tarsnap-gui,Tarsnap/tarsnap-gui,Tarsnap/tarsnap-gui