Handling Qualitative Preferences Using Normal Form Functions