Initially it was moved to allow setting keymaps of python defined menus in C but looks like it breaks macro definition in python. Thanks to Julian for tracking this down. It should fix T42485