Add deprecation notice and moved error.

~~depricated~~ deprecated