Extracting logic to a method in UserManipulator

I found a bit of duplicated code in UserManipulator. That's not a big deal but I think it should be refactored.