Convert calls to dig to an encapsulated class.