Refactor scene.