dev: Clean up grammar search in pacemaker