You should not introduce a dependency to SonataAdminBundle