Fix admin view includes and dependency deprecation errors.