Begin importing the editor. This will be painful.
This is now getting into industrial-scale refactoring.