Remove restjs
Rename factory to createRepositories