Move flag dependencies into docs and code.