Remove non-working code from hooks.rb