Add deprecation notice to the original api.