Refactor Select2Configurator into directive