Only add filter:ratelimit section if middleware is enabled