Remove unnecessary temporary variable