Rewrite map_decl.