Hide default Wordpress themes

I’m sure I’ve seen it somewhere around here, but can’t seem to find it again. Wasn’t there a variable for hiding the default Wordpress themes in the back end, so that only Roots show up?

Of course I found the solution 5 seconds after I made this post.

Just remove or comment the content of register-theme-directory.php in the mu-plugins directory.