extra, constraints: move set_equiv() from extra to constraints