[PATCH v5 1/4] eficonfig: refactor eficonfig_process_common function