Refactor .prompt