I think those lines can be removed now that we have a doctrine.objectmanager.default ?