You're not allowed to circumvent for format shifting, but you are allowed to circumvent to access a work you have rights to. So these takedowns on GitHub should not be happening.
You are allowed to circumvent to access a work. No one is allowed to publish a method to do so (well, I believe the original copyright owner might be?).
So, most likely this GitHub takedown is perfectly legal.