Automatic differentiation only works for the simplest functions for which you already know what the Taylor series looks like. For those cases, you might as well just hardcode derivative functions and the basic derivative rules (linearity and chain rule). It is not a general-purpose method.
For functions that you can't even express by a simple formula, you still have to rely on finite differencing.
Don't call "legacy" anything that you don't understand.