It's not the length, it's having that much stuff inside ternary operators. Make it an `if/else`