Use a using declaration instead of deprecate access declaration.