Define `contains' macro locally.