i feel that the hat did serve some purpose it showed the readers that watson is learning something and while he might not be as smart as sherlock holmes he can definitely hold his own and that he is learning and growing as a character character development