Code cleanup for outer join.