class BareMetalRemovalUpdater {

    public String createUpdatedValue(final String value) {
        final String[] splitParts = value.split(VALUE_SEPARATOR);
        final List<String> filteredParts = new ArrayList<>(splitParts.length);
        for (final String part : splitParts) {
            if (!part.toLowerCase().equals(BARE_METAL)) {
                filteredParts.add(part);
            }
        }
        final String updatedValue = StringUtils.join(filteredParts, VALUE_SEPARATOR);
        logger.info("Updated value (without reference to BareMetal): " + updatedValue);
        return updatedValue;
    }

}