refactor: move user_info into its own variable