Refactor into own exchange rate module.