Refactor camera.