[5.0] Remove leftover variable

This wasn't removed when its usages were removed in commit ea6b958.