The quality of the molasses depends on how the sugar is refined .
The quality of molasses depends on the maturity of the sugar cane or sugar beet , the amount of sugar extracted , and the method of extraction .