Remove code duplication in unwrapped line parser.