protected function getChoiceLoader(FormInterface $form, array $options)
    {
        $choiceLoader = $form->getConfig()->getAttribute('choice_loader');

        if (isset($options['choice_loader'])) {
            $choiceLoader = $options['choice_loader'];
        }

        return $choiceLoader;
    }