class BackupConverter {

    public Backup convert(TelemetryRequest request) {
        Backup backup = null;
        if (freeIpaBackupEnabled && request != null && request.getLogging() != null) {
            backup = new Backup();
            backup.setMonthlyFullEnabled(backupConfiguration.isMonthlyFullEnabled());
            backup.setInitialFullEnabled(backupConfiguration.isRunInitialFullAfterInstall());
            backup.setHourlyEnabled(backupConfiguration.isHourlyEnabled());
            decorateBackupFromLoggingRequest(backup, request.getLogging());
        }
        return backup;
    }

    public  BackupConverter(BackupConfiguration backupConfiguration,
            @Value("${freeipa.backup.enabled:true}") boolean freeIpaBackupEnabled);

}