Remove unused import
Remove FQDN
Move configuration call when only needed
Regroup event dispatching into persistAndFlush and removeAndFlush