class AltusMachineUserService {

    public void clearFluentMachineUser(Stack stack, Telemetry telemetry) {
        if (isMeteringOrAnyDataBusBasedFeatureSupported(stack, telemetry)) {
            String machineUserName = getFluentDatabusMachineUserName(stack);
            ThreadBasedUserCrnProvider.doAsInternalActor(
                    () -> altusIAMService.clearMachineUser(
                            machineUserName,
                            ThreadBasedUserCrnProvider.getUserCrn(),
                            Crn.fromString(stack.getResourceCrn()).getAccountId(),
                            telemetry.isUseSharedAltusCredentialEnabled()));
        }
    }

    public  AltusMachineUserService(AltusIAMService altusIAMService, ClusterService clusterService);

}