This was done for AutoValue (https://github.com/google/auto/issues/268) and should also be done for AutoFactory.