Remove middleware in Railtie