Remove usage of wallet.getPocket.