>I think there may exist some way to refactor this further, but I'm not sure how to do it

something like table driven in [CommitFilter](https://github.com/libgit2/libgit2sharp/blob/vNext/LibGit2Sharp/CommitFilter.cs#L75-L81) ?