Despite being the only trilogy to cross $6 billion globally, the franchise’s declining box office has forced the studio to rethink its future.