Refactor preview.