Would this remove a user-set variable in favor of an automatically added variable? I would move this to a separate private method so the intention is clearer about what this code is doing.