Remove unused references.
Change deprecated properties.
Fix overrides.