Remove 'self' key from getConstraint() calculations because it is not necessary anymore.