Replace global user functions with WT_User class