Move SwapInterface into util, add Reverse function.