[PATCH 1/4] dwrite: Pass features to stage functions.