Refactor volatility calculation into Volatility class.

[Finishes #52400573]
Remove duplicate spec from Project#volatility.