Avoid duplicated Code in UserList

... to make the code more readable and maintainable.