Sidebar: increase common coding

Change 'internal_init_i' to be more generalized and use it in a few more places.