MDL-27628 enrol_meta: code cleanup; removed user preference; added idnumber to search