Move ifmap dependency tracker to the ifmap library so it can be used in the agent