Create factories for DoctrineModule form elements