rn-trails.sp: code cleanup