[PATCH 1/4] scrrun: Move IO mode check to writing helper.