Remove call to deprecated function