refactor project context module to consolidate api