[#3] Fix factory

- As noted in a comment on the PR, `$allConfig` needs to be passed to
  `getRestServicesFromConfig()`, not `$config`.