Replace unneeded variable

Use a direct reference since the variable isn't used for anything else