Consulting detective trope had a real precedent
The idea of an outside expert brought in to help police, which now appears on nearly every crime show, was not purely fictional, since Bell was exactly that kind of consultant for Edinburgh investigators.