Replace all occurrences of "parent" inside constraints