Deprecate things views use that are no longer available

This should make things easier to deal with while converting packages

This is based on the 4.2 branch
Right. I guess it can only work in trigger.