Cleanup syntax in middleware example