Removed dead hooks from flag.module.