Remove dependencies : remove relationships before entities