Refactor the saving and favoriting of movies.