Refactoring of StreamUser class