Refact for use Drupal8 and Symfony