For two weeks, give him a crushing workload that doesn’t give him any time for side projects. Micromanage and give him shit about it in front of his coworkers. Then pull him into a closed door meeting and let him know that his openness about fucking off is causing problems with the rest of the staff and to keep it off the radar.
If he can’t be a team player, then fire him.
This video might be instructive: