refs #18359 - Set the target ID as a variable so the computation only has to happen once. (And add a comment.)