Coalesce common code paths.

Do not go for each code path as being a separate one. Rather, make sure all code flows along the same code path, making proper case analysis split the differences.