His story arc felt over with DR with Doflamingo and things really got out for him too. In addition, Oda really gave him too much screen time in the TS at the expense of the main characters, and Oda clearly never intended him to be in the story or be that central. Imho, Law overstayed his welcome in the series.
True, I have really liked the goofiness because its part of Luffy's character. The whole chapter where he awakens was very well done.