Could move the helper definition after the use for consistency and readability.