Separate out creation of announcement_code in rake task