Return references from GetDummyTarget and GetSelectedOrDummyTarget. This matches how the APIs are already used in practice.