Rewriting git history and moving binaries to dvc

Are there any tools or guides for rewriting a git repo containing binaries in the git history to dvc based storage?

I can delete the existing binary files and use dvc and S3 to store them but would like to be able to rewrite the git history.

For myself, I would use git rebase -i <references> and manually modify each of the commits.

You might want to take a look at the tool like this - BFG Repo-Cleaner by rtyley .Or this link covers a few other options I think - version control - How to remove/delete a large file from commit history in the Git repository? - Stack Overflow