Revert "Introduced MonadResource."

This reverts commit 17607a64dbf44cffd0c1ed4736949cad9576e43c.