Refactor quotes.