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