just curious:  any reason not to just put this in checkout.rb along w/ the code that calls it?