small refactoring for admin/users.py