Migrate monkey patch