[UPD] Refactor of production average costing to better allow extension and future changes