Refactor of updateQuality

Refactored updateQuality to esase development
Extracted conditions update methods

Extracted conditions in is-a new methods
Extracted method getQualityChange