they are only different in terms of whether `registerAccounts` and `initAssets` or not. We can make use of cmd args or something else to combine the codes.