Blueprint-based code reorganization