This reduces code duplication. v2: No functional change this time. Reviewed-by: Keith Packard <keithp@keithp.com>