Move help reply stuff into a helper

Note that we need strdup() to be "const-correct".