The only time I've seen this addressed was in, of all things, the Hardy Boys.
When they relaunched the books in the 2013, they start off with the scenario that Frank and Joe are "retired" from crime-solving whilst still at High School. As Frank outlines in the first chapter
See, our dad, Fenton Hardy, was once a world-famous detective. Growing up, Joe and I would help him on his cases. Then we began tackling mysteries on our own. We were proud of our successes. But after one too many close calls, things started to get a little out of hand, for reasons having to do with private investigators' licenses (we didn't have any), insurance (none of that, either), and the threat of being sued by every hoodlum we ever put under a citizen's arrest. Which is not how my brother and I wanted to spend the remainder of our teenage years, provided we're lucky enough to survive them. Some of us even have hopes of college one day… of a scholarship… of a normal life.
So with a few phone calls, including references from our principal and assurances to the police chief and state attorney general, we "retired." Officially, it stays that way for all the Hardys. Our dad writes books on the history of law enforcement. And Joe and I go to high school.
That cozy arrangement, a.k.a. "the Deal," lasted about a month before Joe and I started going crazy. Maybe being a detective is something in your blood. I don't know.
Since then we've started taking the occasional case for a good cause or to help a friend, but we try to keep it confidential. And we deny everything. We don't consider it lying, just being prudent. We haven't told our dad, which makes me feel a bit guilty, but I get the feeling he suspects.