Factor out code on the pod repo command