Entity Refactoring, and Blueprint from AST generation