Remove overwrites information when changing owner type of entity.
Remove unused code.