Break out the unquote functionality to a separate function.