Moved all quad logic into quad view.