[TIMOB-16151] Cleaned up hooks so that the right hook is being fired when files are being copied.