Remove deprecated native declarations on the java side and mark them as deprecated on the C++ side.