[Truffle] - Refactoring ClassVariableGetNode to remove duplicated code