Replicated logic and UI for favorites on user pages