Refactor compilation history