Introduces a work-around for removing orphan ConstraintIndexes in HA.

This needs to be improved since the workaround is to not do it...