Intelligent refactor command. Triggers: refactor, refactoring, cleanup, restructure, extract, simplify, modernize.