Refactoring of load_users