Move resource classes to the io module