Always strip wildcards from `value`.
Drop `base_value` from dynamic pattern variables.