Clean up hooks code