extracted incrementing of quality logic into its own method. First replacement made
replaced with method that does the same thing
replaced with method that does the same thing