Move tabs code from config_window_create() to new smaller functions.