Refactor the random name feature into its own file