Got rid of groupid for pull request and switched to mapcat instead of map flatten