Service Templates to Integrations

During one of the later 13.X revisions we attempted to pro-active move from Service Templates to Integrations. During the process Jira didn’t move over correctly and some projects got the correct settings and other projects did not. Now instead of just having projects that you want to change from the Default to a custom settting for Jira they are all Custom Setting and I have to change it to Default setting. This is causing error 500s on some project when you attempt to view a commit or merge request with a Jira link in the Title.
My question is there a way to move all projects and groups from Custom Settings to Default with a postgresql command or something else?
As of right now I’m squashing the issues by hand, but it’s very difficult to know if I get them all. Any help on this issue would be greatly appreciated.