Remove all code on IO in a specific class