And here.... (`projectHosts`). It appears that you are reusing the same code, maybe introduce new method? :)