Remove unused hooks.
Fix application root.