refactor: move ReinstallCommand in its own module.