move remove function to Varstraint class