Gather common exchange related methods into one place

So that it'll be easier to remove exchange dependency.
1 file changed