Removing hooks before creating new ones.