Remove an extra assignment in the `match_by` method.