Replace deprecated call