[Core] Clean up repair command.