Extract constraint class