/**
  * Get normalized price before plan.
  *
  * The price_excluding_tax in order item is calculated with total percents
  * from payment plan. This method normalize the price again.
  *
  * @param WC_Deposits_Plan $plan Plan
  * @param array            $item Order item
  *
  * @return float Line price
  */
 private static function _get_normalized_price_before_plan($plan, $item)
 {
     $price_after_plan = !empty($item['price_excluding_tax']) ? $item['price_excluding_tax'] : $item['product']->get_price_excluding_tax($item['qty']);
     if ('percentage' === $plan->get_type()) {
         $total_percent = $plan->get_total_percent();
         $line_price = $price_after_plan * 100 / $total_percent;
     } else {
         $line_price = $price_after_plan;
     }
     return $line_price;
 }