Move dep augmenting closer to the function replacement.