Remove redundant `swap` definition