Port of the compact_forms to Drupal 8