script to migrate explicit rest mappings to implicit