Refactor to fit sonata translation updates : https://github.com/sonata-project/SonataTranslationBundle/pull/12