refactor code into smaller methods for usps shipping quote