Refactoring with LLMs: Bridging Human Expertise and Machine Understanding