Remove unused variable commandSaveRegistry.