Re-factoring exchange code into dedicated class that supports any exchange.