Make hooks local, since occur-x is non-global

Change-Id: I2bb8343f675545c40ede5e7f04306fa5fd33c1ea