Simplify unique_code for announcements