diff --git a/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListBooleanItem.php b/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListBooleanItem.php
index b283d7f..825bb4b 100644
--- a/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListBooleanItem.php
+++ b/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListBooleanItem.php
@@ -7,7 +7,11 @@
 
 namespace Drupal\options\Plugin\Field\FieldType;
 
+use Drupal\Component\Utility\NestedArray;
+use Drupal\Core\Field\ConfigFieldItemBase;
 use Drupal\Core\Field\FieldDefinitionInterface;
+use Drupal\Core\Session\AccountInterface;
+use Drupal\Core\TypedData\AllowedValuesInterface;
 use Drupal\Core\TypedData\DataDefinition;
 
 /**
@@ -26,20 +30,34 @@
  *   }
  * )
  */
-class ListBooleanItem extends ListItemBase {
+class ListBooleanItem extends ConfigFieldItemBase implements AllowedValuesInterface {
 
   /**
    * {@inheritdoc}
    */
-  public static function schema(FieldDefinitionInterface $field_definition) {
-    return parent::schema($field_definition) + array(
-     'columns' => array(
-       'value' => array(
-         'type' => 'int',
-         'not null' => FALSE,
-       ),
-     ),
-    );
+  public function getPossibleValues(AccountInterface $account = NULL) {
+    return array_keys($this->getSettableOptions($account));
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getPossibleOptions(AccountInterface $account = NULL) {
+    return $this->getSettableOptions($account);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getSettableValues(AccountInterface $account = NULL) {
+    return array_keys($this->getSettableOptions($account));
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getSettableOptions(AccountInterface $account = NULL) {
+    return options_allowed_values($this->getFieldDefinition(), $this->getEntity());
   }
 
   /**
@@ -52,4 +70,92 @@ public static function propertyDefinitions(FieldDefinitionInterface $field_defin
     return $properties;
   }
 
+  /**
+   * {@inheritdoc}
+   */
+  public static function schema(FieldDefinitionInterface $field_definition) {
+    return array(
+      'columns' => array(
+        'value' => array(
+          'type' => 'int',
+          'not null' => FALSE,
+        ),
+      ),
+      'indexes' => array(
+        'value' => array('value'),
+      ),
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function isEmpty() {
+    return empty($this->value) && (string) $this->value !== '0';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function settingsForm(array $form, array &$form_state, $has_data) {
+    $allowed_values = $this->getSetting('allowed_values');
+    $allowed_values_function = $this->getSetting('allowed_values_function');
+
+    $values = $allowed_values;
+    $off_value = array_shift($values);
+    $on_value = array_shift($values);
+
+    $element['allowed_values'] = array(
+      '#type' => 'value',
+      '#description' => '',
+      '#value_callback' => array(get_class($this), 'optionsBooleanAllowedValues'),
+      '#access' => empty($allowed_values_function),
+    );
+    $element['allowed_values']['on'] = array(
+      '#type' => 'textfield',
+      '#title' => t('On value'),
+      '#default_value' => $on_value,
+      '#required' => FALSE,
+      '#description' => t('If left empty, "1" will be used.'),
+      // Change #parents to make sure the element is not saved into field
+      // settings.
+      '#parents' => array('on'),
+    );
+    $element['allowed_values']['off'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Off value'),
+      '#default_value' => $off_value,
+      '#required' => FALSE,
+      '#description' => t('If left empty, "0" will be used.'),
+      // Change #parents to make sure the element is not saved into field
+      // settings.
+      '#parents' => array('off'),
+    );
+
+    // Link the allowed value to the on / off elements to prepare for the rare
+    // case of an alter changing #parents.
+    $element['allowed_values']['#on_parents'] = &$element['allowed_values']['on']['#parents'];
+    $element['allowed_values']['#off_parents'] = &$element['allowed_values']['off']['#parents'];
+
+    $element['allowed_values_function'] = array(
+      '#type' => 'item',
+      '#title' => t('Allowed values list'),
+      '#markup' => t('The value of this field is being determined by the %function function and may not be changed.', array('%function' => $allowed_values_function)),
+      '#access' => !empty($allowed_values_function),
+      '#value' => $allowed_values_function,
+    );
+
+    return $element;
+  }
+
+  /**
+   * Form element #value_callback: assembles the allowed values for 'boolean'
+   * fields.
+   */
+  public static function optionsBooleanAllowedValues($element, $input, $form_state) {
+    $on = NestedArray::getValue($form_state['input'], $element['#on_parents']);
+    $off = NestedArray::getValue($form_state['input'], $element['#off_parents']);
+    return array($off, $on);
+  }
+
 }
diff --git a/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListFloatItem.php b/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListFloatItem.php
index cfd9251..43eb89b 100644
--- a/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListFloatItem.php
+++ b/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListFloatItem.php
@@ -31,25 +31,72 @@ class ListFloatItem extends ListItemBase {
   /**
    * {@inheritdoc}
    */
+  public static function propertyDefinitions(FieldDefinitionInterface $field_definition) {
+    $properties['value'] = DataDefinition::create('float')
+      ->setLabel(t('Float value'));
+
+    return $properties;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
   public static function schema(FieldDefinitionInterface $field_definition) {
-    return parent::schema($field_definition) + array(
-     'columns' => array(
-       'value' => array(
-         'type' => 'float',
-         'not null' => FALSE,
-       ),
-     ),
+    return array(
+      'columns' => array(
+        'value' => array(
+          'type' => 'float',
+          'not null' => FALSE,
+        ),
+      ),
+      'indexes' => array(
+        'value' => array('value'),
+      ),
     );
   }
 
   /**
    * {@inheritdoc}
    */
-  public static function propertyDefinitions(FieldDefinitionInterface $field_definition) {
-    $properties['value'] = DataDefinition::create('float')
-      ->setLabel(t('Float value'));
+  protected function settingsFormDescription() {
+    $description = '<p>' . t('The possible values this field can contain. Enter one value per line, in the format key|label.');
+    $description .= '<br/>' . t('The key is the stored value, and must be numeric. The label will be used in displayed values and edit forms.');
+    $description .= '<br/>' . t('The label is optional: if a line contains a single number, it will be used as key and label.');
+    $description .= '<br/>' . t('Lists of labels are also accepted (one label per line), only if the field does not hold any values yet. Numeric keys will be automatically generated from the positions in the list.');
+    $description .= '</p>';
+    $description .= '<p>' . t('Allowed HTML tags in labels: @tags', array('@tags' => _field_filter_xss_display_allowed_tags())) . '</p>';
+    return $description;
+  }
 
-    return $properties;
+  /**
+   * {@inheritdoc}
+   */
+  protected static function validateAllowedValue($option) {
+    if (!is_numeric($option)) {
+      return t('Allowed values list: each key must be a valid integer or decimal.');
+    }
+    else {
+      return NULL;
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected static function validateOptionValue($value) {
+    return is_numeric($value);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected static function allowedValueAlter($value) {
+    // Float keys are represented as strings and need to be disambiguated
+    // ('.5' is '0.5').
+    if (is_numeric($value)) {
+      $value = (string) (float) $value;
+    }
+    return $value;
   }
 
 }
diff --git a/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListIntegerItem.php b/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListIntegerItem.php
index ea28a94..c7cc133 100644
--- a/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListIntegerItem.php
+++ b/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListIntegerItem.php
@@ -31,25 +31,61 @@ class ListIntegerItem extends ListItemBase {
   /**
    * {@inheritdoc}
    */
+  public static function propertyDefinitions(FieldDefinitionInterface $field_definition) {
+    $properties['value'] = DataDefinition::create('integer')
+      ->setLabel(t('Integer value'));
+
+    return $properties;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
   public static function schema(FieldDefinitionInterface $field_definition) {
-    return parent::schema($field_definition) + array(
-     'columns' => array(
-       'value' => array(
-         'type' => 'int',
-         'not null' => FALSE,
-       ),
-     ),
+    return array(
+      'columns' => array(
+        'value' => array(
+          'type' => 'int',
+          'not null' => FALSE,
+        ),
+      ),
+      'indexes' => array(
+        'value' => array('value'),
+      ),
     );
   }
 
   /**
    * {@inheritdoc}
    */
-  public static function propertyDefinitions(FieldDefinitionInterface $field_definition) {
-    $properties['value'] = DataDefinition::create('integer')
-      ->setLabel(t('Integer value'));
+  protected function settingsFormDescription() {
+    $description = '<p>' . t('The possible values this field can contain. Enter one value per line, in the format key|label.');
+    $description .= '<br/>' . t('The key is the stored value, and must be numeric. The label will be used in displayed values and edit forms.');
+    $description .= '<br/>' . t('The label is optional: if a line contains a single number, it will be used as key and label.');
+    $description .= '<br/>' . t('Lists of labels are also accepted (one label per line), only if the field does not hold any values yet. Numeric keys will be automatically generated from the positions in the list.');
+    $description .= '</p>';
+    $description .= '<p>' . t('Allowed HTML tags in labels: @tags', array('@tags' => _field_filter_xss_display_allowed_tags())) . '</p>';
+    return $description;
+  }
 
-    return $properties;
+  /**
+   * {@inheritdoc}
+   */
+  protected static function validateAllowedValue($option) {
+    if (!preg_match('/^-?\d+$/', $option)) {
+      return t('Allowed values list: keys must be integers.');
+    }
+    else {
+      return NULL;
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected static function validateOptionValue($value) {
+    // Detecting true integer strings takes a little trick.
+    return is_numeric($value) && (float) $value == intval($value);
   }
 
 }
diff --git a/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListItemBase.php b/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListItemBase.php
index 6e7416b..0b973f8 100644
--- a/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListItemBase.php
+++ b/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListItemBase.php
@@ -7,7 +7,6 @@
 
 namespace Drupal\options\Plugin\Field\FieldType;
 
-use Drupal\Core\Field\FieldDefinitionInterface;
 use Drupal\Core\Field\ConfigFieldItemBase;
 use Drupal\Core\Session\AccountInterface;
 use Drupal\Core\TypedData\AllowedValuesInterface;
@@ -55,95 +54,31 @@ public function getSettableOptions(AccountInterface $account = NULL) {
   /**
    * {@inheritdoc}
    */
-  public static function schema(FieldDefinitionInterface $field_definition) {
-    return array(
-     'indexes' => array(
-       'value' => array('value'),
-     ),
-    );
+  public function isEmpty() {
+    return empty($this->value) && (string) $this->value !== '0';
   }
 
   /**
    * {@inheritdoc}
    */
   public function settingsForm(array $form, array &$form_state, $has_data) {
-    // @todo Move type-specific logic to the type-specific subclass:
-    //   https://drupal.org/node/2169983.
-    $field_type = $this->getFieldDefinition()->getType();
-
     $allowed_values = $this->getSetting('allowed_values');
     $allowed_values_function = $this->getSetting('allowed_values_function');
 
-    if (in_array($field_type, array('list_integer', 'list_float', 'list_text'))) {
-      $element['allowed_values'] = array(
-        '#type' => 'textarea',
-        '#title' => t('Allowed values list'),
-        '#default_value' => $this->allowedValuesString($allowed_values),
-        '#rows' => 10,
-        '#element_validate' => array(array($this, 'validateAllowedValues')),
-        '#field_has_data' => $has_data,
-        '#access' => empty($allowed_values_function),
-      );
-
-      $description = '<p>' . t('The possible values this field can contain. Enter one value per line, in the format key|label.');
-      if ($field_type == 'list_integer' || $field_type == 'list_float') {
-        $description .= '<br/>' . t('The key is the stored value, and must be numeric. The label will be used in displayed values and edit forms.');
-        $description .= '<br/>' . t('The label is optional: if a line contains a single number, it will be used as key and label.');
-        $description .= '<br/>' . t('Lists of labels are also accepted (one label per line), only if the field does not hold any values yet. Numeric keys will be automatically generated from the positions in the list.');
-      }
-      else {
-        $description .= '<br/>' . t('The key is the stored value. The label will be used in displayed values and edit forms.');
-        $description .= '<br/>' . t('The label is optional: if a line contains a single string, it will be used as key and label.');
-      }
-      $description .= '</p>';
-      $element['allowed_values']['#description'] = $description;
-    }
-    elseif ($field_type == 'list_boolean') {
-      $values = $allowed_values;
-      $off_value = array_shift($values);
-      $on_value = array_shift($values);
-
-      $element['allowed_values'] = array(
-        '#type' => 'value',
-        '#description' => '',
-        '#value_callback' => 'options_field_settings_form_value_boolean_allowed_values',
-        '#access' => empty($allowed_values_function),
-      );
-      $element['allowed_values']['on'] = array(
-        '#type' => 'textfield',
-        '#title' => t('On value'),
-        '#default_value' => $on_value,
-        '#required' => FALSE,
-        '#description' => t('If left empty, "1" will be used.'),
-        // Change #parents to make sure the element is not saved into field
-        // settings.
-        '#parents' => array('on'),
-      );
-      $element['allowed_values']['off'] = array(
-        '#type' => 'textfield',
-        '#title' => t('Off value'),
-        '#default_value' => $off_value,
-        '#required' => FALSE,
-        '#description' => t('If left empty, "0" will be used.'),
-        // Change #parents to make sure the element is not saved into field
-        // settings.
-        '#parents' => array('off'),
-      );
-
-      // Link the allowed value to the on / off elements to prepare for the rare
-      // case of an alter changing #parents.
-      $element['allowed_values']['#on_parents'] = &$element['allowed_values']['on']['#parents'];
-      $element['allowed_values']['#off_parents'] = &$element['allowed_values']['off']['#parents'];
-
-      // Provide additional information about how to format allowed_values
-      // of a boolean field for use by a single on/off checkbox widget. Since
-      // the widget might not have been selected yet, can be changed independently
-      // of this form, and can vary by form mode, we display this information
-      // regardless of current widget selection.
-      $element['allowed_values']['#description'] .= '<p>' . t("For a 'single on/off checkbox' widget, define the 'off' value first, then the 'on' value in the <strong>Allowed values</strong> section. Note that the checkbox will be labeled with the label of the 'on' value.") . '</p>';
-    }
+    $element['allowed_values'] = array(
+      '#type' => 'textarea',
+      '#title' => t('Allowed values list'),
+      '#default_value' => $this->allowedValuesString($allowed_values),
+      '#rows' => 10,
+      '#access' => empty($allowed_values_function),
+      '#element_validate' => array(array(get_class($this), 'validateAllowedValues')),
+      '#field_has_data' => $has_data,
+      '#field_name' => $this->getFieldDefinition()->getName(),
+      '#entity_type' => $this->getEntity()->getEntityTypeId(),
+      '#allowed_values' => $allowed_values,
+    );
 
-    $element['allowed_values']['#description'] .= '<p>' . t('Allowed HTML tags in labels: @tags', array('@tags' => _field_filter_xss_display_allowed_tags())) . '</p>';
+    $element['allowed_values']['#description'] = $this->settingsFormDescription();
 
     $element['allowed_values_function'] = array(
       '#type' => 'item',
@@ -157,39 +92,26 @@ public function settingsForm(array $form, array &$form_state, $has_data) {
   }
 
   /**
-   * Generates a string representation of an array of 'allowed values'.
-   *
-   * This string format is suitable for edition in a textarea.
-   *
-   * @param array $values
-   *   An array of values, where array keys are values and array values are
-   *   labels.
+   * Provides the field type specific settings form element #description.
    *
    * @return string
-   *   The string representation of the $values array:
-   *    - Values are separated by a carriage return.
-   *    - Each value is in the format "value|label" or "value".
+   *   The field type settings form specific description.
    */
-  protected function allowedValuesString($values) {
-    $lines = array();
-    foreach ($values as $key => $value) {
-      $lines[] = "$key|$value";
-    }
-    return implode("\n", $lines);
-  }
+  abstract protected function settingsFormDescription();
 
   /**
-   * Element validate callback; check that the entered values are valid.
+   * #element_validate callback for options field allowed values.
+   *
+   * @param $element
+   *   An associative array containing the properties and children of the
+   *   generic form element.
+   * @param $form_state
+   *   The $form_state array for the form this element belongs to.
+   *
+   * @see form_process_pattern()
    */
-  public function validateAllowedValues($element, &$form_state) {
-    // @todo Move type-specific logic to the type-specific subclass:
-    //   https://drupal.org/node/2169983.
-    $field_type = $this->getFieldDefinition()->getType();
-
-    $has_data = $element['#field_has_data'];
-    $generate_keys = ($field_type == 'list_integer' || $field_type == 'list_float') && !$has_data;
-
-    $values = $this->extractAllowedValues($element['#value'], $generate_keys);
+  public static function validateAllowedValues($element, &$form_state) {
+    $values = static::extractAllowedValues($element['#value'], $element['#field_has_data']);
 
     if (!is_array($values)) {
       \Drupal::formBuilder()->setError($element, $form_state, t('Allowed values list: invalid input.'));
@@ -197,54 +119,38 @@ public function validateAllowedValues($element, &$form_state) {
     else {
       // Check that keys are valid for the field type.
       foreach ($values as $key => $value) {
-        if ($field_type == 'list_integer' && !preg_match('/^-?\d+$/', $key)) {
-          \Drupal::formBuilder()->setError($element, $form_state, t('Allowed values list: keys must be integers.'));
-          break;
-        }
-        if ($field_type == 'list_float' && !is_numeric($key)) {
-          \Drupal::formBuilder()->setError($element, $form_state, t('Allowed values list: each key must be a valid integer or decimal.'));
-          break;
-        }
-        elseif ($field_type == 'list_text' && drupal_strlen($key) > 255) {
-          \Drupal::formBuilder()->setError($element, $form_state, t('Allowed values list: each key must be a string at most 255 characters long.'));
+        if ($error = static::validateAllowedValue($key)) {
+          \Drupal::formBuilder()->setError($element, $form_state, $error);
           break;
         }
       }
 
       // Prevent removing values currently in use.
-      if ($has_data) {
-        $lost_keys = array_diff(array_keys($this->getSetting('allowed_values')), array_keys($values));
-        if (_options_values_in_use($this->getEntity()->getEntityTypeId(), $this->getFieldDefinition()->getName(), $lost_keys)) {
+      if ($element['#field_has_data']) {
+        $lost_keys = array_diff(array_keys($element['#allowed_values']), array_keys($values));
+        if (_options_values_in_use($element['#entity_type'], $element['#field_name'], $lost_keys)) {
           \Drupal::formBuilder()->setError($element, $form_state, t('Allowed values list: some values are being removed while currently in use.'));
         }
       }
 
-      form_set_value($element, $values, $form_state);
+      \Drupal::formBuilder()->setValue($element, $values, $form_state);
     }
   }
 
   /**
-   * Parses a string of 'allowed values' into an array.
+   * Extracts the allowed values array from the allowed_values element.
    *
    * @param string $string
-   *   The list of allowed values in string format described in
-   *   \Drupal\options\Plugin\Field\FieldType\ListItemBase::allowedValuesString().
-   * @param bool $generate_keys
-   *   Boolean value indicating whether to generate keys based on the position
-   *   of the value if a key is not manually specified, and if the value cannot
-   *   be used as a key. This should only be TRUE for fields of type
-   *   'list_number'.
+   *   The raw string to extract values from.
+   * @param bool $has_data
+   *   The current field already has data inserted or not.
    *
    * @return array
    *   The array of extracted key/value pairs, or NULL if the string is invalid.
    *
-   * @see \Drupal\options\Plugin\Field\FieldType\ListItemBase::allowedValuesString()
+   * @see \Drupal\options\Plugin\Field\FieldType\ListTextItem::allowedValuesString()
    */
-  protected function extractAllowedValues($string, $generate_keys) {
-    // @todo Move type-specific logic to the type-specific subclass:
-    //   https://drupal.org/node/2169983.
-    $field_type = $this->getFieldDefinition()->getType();
-
+  protected static function extractAllowedValues($string, $has_data) {
     $values = array();
 
     $list = explode("\n", $string);
@@ -263,16 +169,13 @@ protected function extractAllowedValues($string, $generate_keys) {
         $value = trim($matches[2]);
         $explicit_keys = TRUE;
       }
-      // Otherwise see if we can use the value as the key. Detecting true integer
-      // strings takes a little trick.
-      elseif ($field_type == 'list_text'
-      || ($field_type == 'list_float' && is_numeric($text))
-      || ($field_type == 'list_integer' && is_numeric($text) && (float) $text == intval($text))) {
+      // Otherwise see if we can use the value as the key.
+      elseif (static::validateOptionValue($text)) {
         $key = $value = $text;
         $explicit_keys = TRUE;
       }
       // Otherwise see if we can generate a key from the position.
-      elseif ($generate_keys) {
+      elseif (!$has_data) {
         $key = (string) $position;
         $value = $text;
         $generated_keys = TRUE;
@@ -281,11 +184,7 @@ protected function extractAllowedValues($string, $generate_keys) {
         return;
       }
 
-      // Float keys are represented as strings and need to be disambiguated
-      // ('.5' is '0.5').
-      if ($field_type == 'list_float' && is_numeric($key)) {
-        $key = (string) (float) $key;
-      }
+      $key = static::allowedValueAlter($key);
 
       $values[$key] = $value;
     }
@@ -299,11 +198,60 @@ protected function extractAllowedValues($string, $generate_keys) {
   }
 
   /**
-   * {@inheritdoc}
+   * Validates if the entry is a valid option.
+   *
+   * @param string $value
+   *   The option entered by the user.
+   * @return bool
+   *   TRUE if the entry is a valid option, FALSE otherwise.
    */
-  public function isEmpty() {
-    $value = $this->get('value')->getValue();
-    return empty($value) && (string) $value !== '0';
+  protected static function validateOptionValue($value) {
+    return TRUE;
+  }
+
+  /**
+   * Processes the option value to store it properly.
+   *
+   * @param string $value
+   *   The option value entered by the user.
+   * @return string
+   *   The processed option value.
+   */
+  protected static function allowedValueAlter($value) {
+    return $value;
+  }
+
+  /**
+   * Checks whether a candidate allowed value is valid.
+   *
+   * @param string $option
+   *   The option value entered by the user.
+   *
+   * @return string
+   *   The error message if the specified value is invalid, NULL otherwise.
+   */
+  protected static function validateAllowedValue($option) { }
+
+  /**
+   * Generates a string representation of an array of 'allowed values'.
+   *
+   * This string format is suitable for edition in a textarea.
+   *
+   * @param array $values
+   *   An array of values, where array keys are values and array values are
+   *   labels.
+   *
+   * @return string
+   *   The string representation of the $values array:
+   *    - Values are separated by a carriage return.
+   *    - Each value is in the format "value|label" or "value".
+   */
+  protected function allowedValuesString($values) {
+    $lines = array();
+    foreach ($values as $key => $value) {
+      $lines[] = "$key|$value";
+    }
+    return implode("\n", $lines);
   }
 
 }
diff --git a/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListTextItem.php b/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListTextItem.php
index 11757d2..7e15bef 100644
--- a/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListTextItem.php
+++ b/core/modules/options/lib/Drupal/options/Plugin/Field/FieldType/ListTextItem.php
@@ -31,28 +31,55 @@ class ListTextItem extends ListItemBase {
   /**
    * {@inheritdoc}
    */
+  public static function propertyDefinitions(FieldDefinitionInterface $field_definition) {
+    $constraints = array('Length' => array('max' => 255));
+    $properties['value'] = DataDefinition::create('string')
+      ->setLabel(t('Text value'))
+      ->setConstraints($constraints);
+
+    return $properties;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
   public static function schema(FieldDefinitionInterface $field_definition) {
-    return parent::schema($field_definition) + array(
-     'columns' => array(
-       'value' => array(
-         'type' => 'varchar',
-         'length' => 255,
-         'not null' => FALSE,
-       ),
-     ),
+    return array(
+      'columns' => array(
+        'value' => array(
+          'type' => 'varchar',
+          'length' => 255,
+          'not null' => FALSE,
+        ),
+      ),
+      'indexes' => array(
+        'value' => array('value'),
+      ),
     );
   }
 
   /**
    * {@inheritdoc}
    */
-  public static function propertyDefinitions(FieldDefinitionInterface $field_definition) {
-    $constraints = array('Length' => array('max' => 255));
-    $properties['value'] = DataDefinition::create('string')
-      ->setLabel(t('Text value'))
-      ->setConstraints($constraints);
+  protected function settingsFormDescription() {
+    $description = '<p>' . t('The possible values this field can contain. Enter one value per line, in the format key|label.');
+    $description .= '<br/>' . t('The key is the stored value. The label will be used in displayed values and edit forms.');
+    $description .= '<br/>' . t('The label is optional: if a line contains a single string, it will be used as key and label.');
+    $description .= '</p>';
+    $description .= '<p>' . t('Allowed HTML tags in labels: @tags', array('@tags' => _field_filter_xss_display_allowed_tags())) . '</p>';
+    return $description;
+  }
 
-    return $properties;
+  /**
+   * {@inheritdoc}
+   */
+  protected static function validateAllowedValue($option) {
+    if (drupal_strlen($option) > 255) {
+      return t('Allowed values list: each key must be a string at most 255 characters long.');
+    }
+    else {
+      return NULL;
+    }
   }
 
 }
diff --git a/core/modules/options/options.module b/core/modules/options/options.module
index 51d568a..cbb1e3c 100644
--- a/core/modules/options/options.module
+++ b/core/modules/options/options.module
@@ -5,7 +5,6 @@
  * Defines selection, check box and radio button widgets for text and numeric fields.
  */
 
-use Drupal\Component\Utility\NestedArray;
 use Drupal\Core\Entity\EntityInterface;
 use Drupal\Core\Field\FieldDefinitionInterface;
 use Drupal\field\FieldConfigInterface;
@@ -34,15 +33,6 @@ function options_help($path, $arg) {
 }
 
 /**
-* Form element #value_callback: assembles the allowed values for 'boolean' fields.
-*/
-function options_field_settings_form_value_boolean_allowed_values($element, $input, $form_state) {
-  $on = NestedArray::getValue($form_state['input'], $element['#on_parents']);
-  $off = NestedArray::getValue($form_state['input'], $element['#off_parents']);
-  return array($off, $on);
-}
-
-/**
  * Implements hook_ENTITY_TYPE_update() for 'field_config'.
  */
 function options_field_config_update(FieldConfigInterface $field) {
