Take midonet api call out of the transaction