nit

DRY: two places with similar means to extract this property.