Refactor extension system