Adding Method to Calculate Percentage Rate Adjustment for Flat Rate Shipping

There was a lot of redundancy in the `calculate_shipping` method in the Flat Rate Shipping class. I extracted some of that logic and put it into it's own method.