integrated quote refactoring into quoteSpec.