Rename adapters to middlewares