LPS-49818 move variable closer to where it is used (no changes)