Move LookupFactor to user_util, and allow users to mark variables as categorical directly from it