deprecated.jl: further improvements to errors for removed functions.