Split the dep discovery from CreateDepList so it should be replaced by a real
mechanism.