Refactor update_wallet and delete_wallet methods