nitpick: extract to an helper?