Separate hooks code from core
Keep source directory clean from generated files