3D Refactoring