Remove Dispose overrides and sealed classes, revert using as operator