Convert Loadfavorite to class.