Refactoring Net::HTTP Dispatcher