Remove redundant direction