Turn ContractFactory methods into instance methods