Get rid of redundant path transformation