Refactor Camera factory to services.js file