Extract Variable from VariableNode (#14150)

Change-Id: I098c8bb5bb027a334094fc057314861a9230235a