Inject configFactory and encapsulate octocat.settings in its own method