Remove Path::getLast.