refactor to allow separate generation/transmission of notices