cleanup for feature expressions in transformRecursive