Removing extra memory observe in getVariableForObserveOrNullify