Use goog.functions.sequence
Renaming handleWriteOptions to applyWriteOptions