Issue #2208165 by longwave, damiankloip: Replace usage of views deprecated functions in views.