remove duplicated constants (directions)