I think these blocks are dup'd enough we probably want to source a separate file for this logic. Otherwise it will just become inconsistent. Something in libexecdir is possible here, as long as it doesn't match the puppetdb-* part its fine.