cleaning up Rule::transpile