After some refactoring, this helper method had an unused argument (vars) and an always-nil error return value. This commit cleans this up.