- refactor the project related functions into the projects object