Some refactoring on hw1 swaption calculation.