Removing unused cookie and session middleware.