LPS-32066 replace reference with already in context variable (not for backport)