Refactoring on a plane