`target != record` is already used at the top level `if` statement. Let's extract a local variable to make it expressive that this is an assignment of itself.