Write quorum refactoring