Refactors `Writers` to reduce code duplication.