A refactoring of the IB API.