add refactoring to pattern book notes