Extract ID marshal code into resolvers
Created by: eseliger
Not needed outside of resolvers anymore, so making it in line with the other resolvers.
Works on #13174
Created by: eseliger
Not needed outside of resolvers anymore, so making it in line with the other resolvers.
Works on #13174