It's still used in ``createUser``. It was previously an anonymous function inside ``createUser``; I just moved it outside so it can be exported and used in tests.