task: move notice insertion code to Rakefile

Because it is not general code.