Remove transitive variables