Isolate id when defining new patterns