Refactor project recompilation