chore(clean): Cleans up some code duplication within lib/project.js