Cleanup compiler code for setting default and file specific hook entity