[PATCH v3 1/3] eficonfig: refactor eficonfig_process_common function