[gem] refactor phantom processor