Since this is all specific to user_types, why not internalize all these helpers into user_types.py?