Move the user conversion code into its own place