to detect which version of the form code you have, you could use ``interface_exists`` on the new [``FactoryInterface``](https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Form/Factory/FactoryInterface.php)