Removing the getProjectId function, which was duplicated in several controllers.