Clean up price history code